<?php
$this->headLink()
->appendStylesheet($this->Css('table.css'));
?>
<style>
.newspaper-a {font-size:100%;margin: 5px auto; white-space: nowrap; text-align:center; width:98%}
.newspaper-a caption {font-size:15px}
</style>
<table border="1" class="newspaper-a" >
<caption><?php echo $this->translate('student summary birthday list')?></caption>
<thead>
<tr>
<th><?php echo $this->translate('months')?></th>
<?php for($i=1; $i<=12; $i++):?>
<th><?php echo $i.' '.$this->translate('month')?></th>
<?php endfor?>
<th><?php echo $this->translate('subtotal')?></th>
</tr>
</thead>
<tbody>
<?php foreach($this->className as $id=>$val):?>
<tr>
<td><?php echo $val?></td>
<?php for($i=1; $i<=12; $i++):?>
<td><?php echo (isset($this->data[$id][$i]))?$this->data[$id][$i]:0?></td>
<?php endfor;?>
<td><?php echo $this->classArr[$id]?></td>
</tr>
<?php endforeach?>
<tr>
<td><?php echo $this->translate('summary all school')?></td>
<?php $cc=0;?>
<?php for($i=1; $i<=12; $i++):?>
<td><?php echo ($this->monthArr[$i])?$this->monthArr[$i]:0?></td>
<?php $cc += $this->monthArr[$i];?>
<?php endfor;?>
<td><?php echo $cc?></td>
</tr>

</tbody>

</table>

<hr>
<table border="1" class="newspaper-a" >
<thead>
<tr>
<th><?php echo $this->translate('months')?></th>
<?php for($i=1; $i<=12; $i++):?>
<th><?php echo $i.' '.$this->translate('month')?></th>
<?php endfor?>
<th><?php echo $this->translate('subtotal')?></th>
</tr>
</thead>
<tbody>
<tr>
<th><?php echo $this->translate('summary of teacher')?></th>
<?php $cc= 0?>
<?php for($i=1; $i<=12; $i++):?>
<td><?php echo ($this->teacherCount[$i])?$this->teacherCount[$i]:0?></td>
<?php $cc += $this->teacherCount[$i]?>
<?php endfor?>
<td><?php echo $cc?></td>
</tr>
</tbody>
</table>